package com.weixing.mall.provider.model.vo.sys;

import lombok.Data;

import java.util.ArrayList;

/**
 * @ClassName SysMenuVo
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/7/29
 * @Version 1.0
 **/
@Data
public class SysMenuVo {
    private Long id;
    private String menuName;
    private String menuUrl;
    private Long parentId;
    private Integer orderBy;
    private Integer isEnable;
    private Integer menuType;
    private String icon;
    private String vuePath;
    private String vueComponent;
    private String vueRedirectPath;
    private Integer vueIsLeaf;
    private Integer vueIsHiddren;

    private ArrayList<SysMenuVo> children;


    public int hashcode() {
        return id.hashCode();
    }

    @Override
    public boolean equals(Object obj) {  // 重写equals()方法。
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (obj instanceof SysMenuVo) {
            SysMenuVo p = (SysMenuVo) obj;
            return id.longValue() == p.getId().longValue();
        }
        return false;
    }

}
